home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / graphics / openfont.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-12  |  1.1 KB  |  63 lines

  1. /*
  2.     (C) 1995 AROS - The Amiga Replacement OS
  3.     $Id: openfont.c,v 1.4 1996/08/29 14:15:27 digulla Exp $    $Log
  4.     Desc:
  5.     Lang: english
  6. */
  7. #include "graphics_intern.h"
  8. #include <graphics/text.h>
  9.  
  10. extern struct TextFont * driver_OpenFont (struct TextAttr *,
  11.     struct GfxBase *);
  12.  
  13. /*****************************************************************************
  14.  
  15.     NAME */
  16.     #include <graphics/text.h>
  17.     #include <clib/graphics_protos.h>
  18.  
  19.     __AROS_LH1(struct TextFont *, OpenFont,
  20.  
  21. /*  SYNOPSIS */
  22.     __AROS_LHA(struct TextAttr *, textAttr, A0),
  23.  
  24. /*  LOCATION */
  25.     struct GfxBase *, GfxBase, 12, Graphics)
  26.  
  27. /*  FUNCTION
  28.  
  29.     INPUTS
  30.  
  31.     RESULT
  32.  
  33.     NOTES
  34.  
  35.     EXAMPLE
  36.  
  37.     BUGS
  38.  
  39.     SEE ALSO
  40.  
  41.     INTERNALS
  42.  
  43.     HISTORY
  44.     29-10-95    digulla automatically created from
  45.                 graphics_lib.fd and clib/graphics_protos.h
  46.  
  47. *****************************************************************************/
  48. {
  49.     __AROS_FUNC_INIT
  50.     __AROS_BASE_EXT_DECL(struct GfxBase *,GfxBase)
  51.     struct TextFont * font;
  52.  
  53.     font = driver_OpenFont (textAttr, GfxBase);
  54.  
  55.     if (font)
  56.     {
  57.     font->tf_Accessors ++;
  58.     }
  59.  
  60.     return font;
  61.     __AROS_FUNC_EXIT
  62. } /* OpenFont */
  63.